package com.yan;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author yanheng
 * @data 2019/10/21 16:07
 */

@Configuration
@ComponentScan("com.yan")
public class AnnotationConfig {

	@Bean
	public Y y(){
		return new Y();
	}

	@Bean
	public X x(){
		y();
		return new X();
	}
}
